package com.gxh.dto;

import com.gxh.entity.UserMachineImage;
import com.gxh.entity.UserMachineVideo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(value = "用户上传设备信息模型")
public class UserMachineDTO implements Serializable {

    @ApiModelProperty("id主键")
    private Long id;
    @ApiModelProperty("设备名称")
    private String name;
    @ApiModelProperty("设备分类")
    private String categoryName;
    @ApiModelProperty("设备品牌")
    private String brand;
    @ApiModelProperty("设备系统")
    private String machineSystem;
    @ApiModelProperty("设备出厂年份")
    private String year;
    @ApiModelProperty("设备数量")
    private Integer quantity;
    @ApiModelProperty("设备价格")
    private BigDecimal price;
    @ApiModelProperty("设备位置")
    private String locationName;
    @ApiModelProperty("设备描述")
    private String description;
    @ApiModelProperty("设备联系人")
    private String phone;
    @ApiModelProperty("设备状态")
    private Integer status;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("创建人")
    private Long createUser;
    @ApiModelProperty ("设备视频列表")
    private List<UserMachineVideo> videos = new ArrayList<>();

    @ApiModelProperty ("设备图片列表")
    private List<UserMachineImage>  images = new ArrayList<>();
}
